package com.eos.orm.mybatis.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.RepayCustDailyReportMapper;
import com.eos.orm.mybatis.model.RepayCustDailyReport;
import com.eos.orm.mybatis.model.RepayCustDailyReportExample;

public class RepayCustDailyReportMapperImpl extends AbstractSqlSessionFactory
		implements RepayCustDailyReportMapper {

	public int countByExample(RepayCustDailyReportExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int deleteByExample(RepayCustDailyReportExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insert(RepayCustDailyReport record) {
		SqlSession session = sqlSessionFactory.openSession();
		try {
			RepayCustDailyReportMapper mapper = session
					.getMapper(RepayCustDailyReportMapper.class);
			mapper.insert(record);
			session.commit();
			mapper = null;
		} catch (Exception e) {
			System.out
					.println("com.eos.orm.mybatis.dao.impl.RepayCustDailyReportMapperImpl.insert throws exception:"
							+ e.getMessage());
			return -1;
		} finally {
			session.close();
		}
		return 0;
	}

	public int insertSelective(RepayCustDailyReport record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List<RepayCustDailyReport> selectByExample(
			RepayCustDailyReportExample example) {
		// TODO Auto-generated method stub
		return null;
	}

	public RepayCustDailyReport selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateByExample(RepayCustDailyReport record,
			RepayCustDailyReportExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByExampleSelective(RepayCustDailyReport record,
			RepayCustDailyReportExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(RepayCustDailyReport record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKeySelective(RepayCustDailyReport record) {
		// TODO Auto-generated method stub
		return 0;
	}

}
